import { defineConfig, presetAttributify, presetIcons, presetUno } from 'unocss';

export default defineConfig({
  presets: [
    // 默认预设，包含了 Tailwind / Windi CSS 的原子化工具类
    presetUno(),
    // 属性化模式支持
    presetAttributify(),
    // 图标支持
    presetIcons({
      scale: 1.2,
      warn: true,
    }),
  ],
  theme: {
    colors: {
      primary: '#165DFF',
      secondary: '#722ED1',
      success: '#00B42A',
      warning: '#FF7D00',
      danger: '#F53F3F',
    },
    fontFamily: {
      inter: ['Inter', 'system-ui', 'sans-serif'],
    },
  },
  shortcuts: {
    'btn': 'px-4 py-2 rounded-md transition-all duration-200',
    'btn-primary': 'btn bg-primary text-white hover:bg-primary/90',
    'btn-secondary': 'btn bg-secondary text-white hover:bg-secondary/90',
    'card': 'bg-white rounded-lg shadow-md p-4 transition-all duration-300 hover:shadow-lg',
  },
});
